<include target="_tool_header.html" />

<!-- Content -->
<div id="content">
    <!-- contentHeader -->
    <div class="dashboardHeader">
        <h3 class="h3"><span class="icon shipping"></span>{$lang->shipping}</h3>
    </div>

    <div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
        <p>{$XE_VALIDATOR_MESSAGE}</p>
    </div>
    <!-- /contentHeader -->

    <table class="tableData">
        <thead>
            <tr>
                <th scope="col">{$lang->settings}</th>
                <th scope="col">{$lang->name}</th>
                <th scope="col">{$lang->status}</th>
                <th scope="col">{$lang->default}</th>
                <th scope="col">{$lang->actions}</th>
            </tr>
        </thead>
        <tbody>
        <!--@foreach($shipping_methods as $shipping_method)-->
            <tr>
                <td>
                    <span class="btnGray medium">
                        <a href="{getUrl('act', 'dispShopToolEditShipping', 'name', $shipping_method->name)}">
                            {$lang->settings}
                        </a>
                    </span>
                </td>

                <td>
                    {$shipping_method->getDisplayName()}
                </td>

                <td>
                    <!--@if($shipping_method->isActive())-->
                        <!--@if($shipping_method->isConfigured())-->
                            <img src="img/check.png" alt="Active" />
                        <!--@else-->
                            <img src="img/cross.png" alt="Needs configuration" /> (Settings missing)
                        <!--@end-->
                    <!--@end-->
                </td>

                <td>
                    <!--@if($shipping_method->isDefault())-->
                    <img src="img/check.png" alt="Selected as default" />
                    <!--@end-->
                </td>

                <td>
                    <!--@if($shipping_method->isActive())-->
                        <!--@if(!$shipping_method->isDefault())-->
                            <a href="{getUrl('act','procShopToolDeactivateShippingMethod','name',$shipping_method->name)}">{$lang->deactivate}</a>
                        <!--@end-->
                    <!--@else-->
                    <a href="{getUrl('act','procShopToolActivateShippingMethod','name',$shipping_method->name)}">{$lang->activate}</a>
                    <!--@end-->
                    <!--@if($shipping_method->isActive() && !$shipping_method->isDefault())-->
                    &nbsp;|&nbsp;
                    <a href="{getUrl('act','procShopToolSetShippingMethodAsDefault','name',$shipping_method->name)}">{$lang->set_as_default}</a>
                    <!--@end-->
                </td>
            </tr>
        <!--@end-->
        </tbody>
    </table>



</div>
<!-- /Content -->

<include target="_tool_menu.html" />
<include target="_tool_footer.html" />